
import React from "react";
import { Modal } from 'antd'
import { defaultParam } from "./params";


class MyModal extends React.Component {
  constructor(props, context) {
    super()
    this.state = {

    }
  }

  render() {
    const newProps = { ...defaultParam, ...this.props }
    return <Modal {...newProps}></Modal>
  }
}




 function ModalFanc(props){
  const newProps = { ...defaultParam, ...props }
     return<>
     <Modal {...newProps}></Modal>
     </>
 }


export {
  MyModal,
  ModalFanc
}
